package com.wuwei.tms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author wuwei
 * @since 2024-01-03
 */
@TableName("t_user")
@ApiModel(value = "TUser对象", description = "")
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long empno;

    private String password;

    private String name;

    private String dept;

    /**
     * 1是管理员，0是普通用户
     * 对应着t_user_type表的value
     */
    private Integer status;

    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;

    private Long editBy;

    private Long createdBy;

}
